<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>微博系统注册</title>
    <link type="text/css" rel="stylesheet" href="/stylesheets/style.css" />
    <script type="text/javascript" src="/javascripts/jquery-1.7.min.js"></script>
    <script type="text/javascript" src="/javascripts/common.js"></script>
  </head>
  <body>
    <div class="wrap">
      <div class="wrap-inner">

        <div class="header">
          <div class="login-infos">
            <p>欢迎您&nbsp;&nbsp;<a href="/login">登录</a>&nbsp;&nbsp;！</p>
            <!-- <p><a href="">songhailin</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">退出</a></p> -->
          </div>
          <div class="logo"><a href="/weibo"><img src="/images/logo.gif" /></a></div>
        </div>
        <div class="container">
          <div class="register-form">
            <% form_for @user, :html=>{:method=>:post,:multipart => true},:url => account_path do |form| %>
              <%= form.error_messages %>
              <div class="form"><span>昵 称:</span><%= form.text_field :name %></div>
              <div class="form"><span>我的邮箱:</span><%= form.text_field :email %></div>
              <div class="form"><span>创建密码:</span><%= form.password_field :password %></div>
              <div class="form"><span>确认密码:</span><%= form.password_field :password_confirmation %></div>
              <div class="form"><span>性 别:</span><input type="radio" name="user[gender]"/>男&nbsp;&nbsp;<input type="radio" name="user[gender]"/>女</div>
              <div class="form"><span>所 在 地:</span>
                <select name="user[city]" class="nob">
                  <option>上海</option>
                  <option>北京</option>
                  <option>重庆</option>
                  <option>福建</option>
                  <option>甘肃</option>
                  <option>广东</option>
                  <option>广西</option>
                  <option>湖北</option>
                  <option>湖南</option>
                  <option>内蒙古</option>
                  <option>江苏</option>
                  <option>江西</option>
                  <option>吉林</option>
                  <option>辽宁</option>
                  <option>宁夏</option>
                  <option>台湾</option>
                  <option>香港</option>
                  <option>澳门</option>
                  <option>海外</option>
                  <option>其他</option>
                </select>
              </div>
              <div class="form"><span>头像照片:</span><input type="file" name="user[file]"/></div>
              <div>
                <input type="submit" value="注册" class="button-register2"/>
              </div>
            <% end %>
          </div>
        </div>

      </div>
    </div>
  </body>
</html>